package com.kaifamiao.convert;

import java.time.Instant;
import java.util.Date;

public class InstantToDate {

    public static void main(String[] args) {
        Instant instant = Instant.ofEpochSecond( 60L * 60 * 24 * 365 * 50 + 20000 );
        System.out.println( instant );

        Date date = Date.from( instant );
        System.out.println( date );
    }

}
